package fgl.common.config;

import fgl.common.framework.hessian.server.impl.HessianTestImpl;
import fgl.common.framework.hessian.server.inter.HessianTestInter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.caucho.HessianServiceExporter;

/**
 * @author fuguangli
 * @description 前沿类
 * @Create date:    2017/7/5
 */
@Configuration
public class HessianConfig {
    @Bean("/hessian/hessianServiceExporter")
    public HessianServiceExporter hessianServiceExporter() {
        HessianServiceExporter exporter = new HessianServiceExporter();
        exporter.setService(new HessianTestImpl());
        exporter.setServiceInterface(HessianTestInter.class);
        return exporter;
    }
}
